<%@ page language="java" import="java.util.*,java.text.*,java.io.*" pageEncoding="utf-8"%>
<%@page import="issuedfileaction.DBConnection;"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd"); 
SimpleDateFormat sdft=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); 
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">    
    <title>保存催收记录</title>    
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">    
  </head>
  
  <body>    
  <%
     String urgetime="";
     String questionoccurtime="";
     String urgeobjectcode="";
     String urgeobjectname="";
     String urgequestion="";
     String urgeresult="";
     String urgerecord="";
     String datetype="";
     try{
         urgetime=new String(request.getParameter("urgetime").getBytes("ISO-8859-1"),"gbk");
     }catch(Exception e){
         urgetime="";
     }
     try{
         questionoccurtime=new String(request.getParameter("questionoccurtime").getBytes("ISO-8859-1"),"gbk");
     }catch(Exception e){
         questionoccurtime="";
     }
     try{
         urgeobjectcode=new String(request.getParameter("urgeobjectcode").getBytes("ISO-8859-1"),"gbk");
     }catch(Exception e){
         urgeobjectcode="";
     }
     try{
         urgeobjectname=new String(request.getParameter("urgeobjectname").getBytes("ISO-8859-1"),"gbk");
     }catch(Exception e){
         urgeobjectname="";
     }
     try{
         urgequestion=new String(request.getParameter("urgequestion").getBytes("ISO-8859-1"),"gbk");
     }catch(Exception e){
         urgequestion="";
     }
     try{
         urgeresult=new String(request.getParameter("urgeresult").getBytes("ISO-8859-1"),"gbk");
     }catch(Exception e){
         urgeresult="";
     }
     try{
         urgerecord=new String(request.getParameter("urgerecord").getBytes("ISO-8859-1"),"gbk");
     }catch(Exception e){
         urgerecord="";
     }
     try{
         datetype=new String(request.getParameter("datetype").getBytes("ISO-8859-1"),"gbk");
     }catch(Exception e){
         datetype="";
     }
     
     String SQLStr="insert into DTURGERECORD (DT_UID,DT_UDATETIME,DT_UOCCURDATETIME,DT_UDEALERCODE,DT_UDEALERNAME,DT_UQUESTION,DT_URESULT,DT_URECORD,dt_utype) " 
                  +" values (SYS_GUID(),to_date('"+urgetime+"','YYYY-MM-DD HH24:MI:SS'),to_date('"+questionoccurtime+"','YYYY-MM-DD HH24:MI:SS'),'"+urgeobjectcode.trim()+"','"+urgeobjectname.trim()+"','"+urgequestion.trim()+"','"+urgeresult.trim()+"','"+urgerecord.trim()+"','"+datetype.trim()+"')";                      
     DBConnection db=new DBConnection();
     db.SQLInsertExec(SQLStr); 
     response.setContentType("text/html; charset=utf-8");
     response.setHeader("Cache-Control", "no-cache");
     PrintWriter pw = response.getWriter();
     pw.write("<SCRIPT TYPE='text/javascript'>parent.setSaveValue();parent.hiddenFrm();</SCRIPT>");
     pw.close();                              	 	 
  %>
  </body>
</html>

















































































